<%= render :partial => 'admin/products/menu' %>

<h1>Editing Option</h1>
<br/>
<%= form_tag :action => 'update', :id => @option do %>
  <%= render :partial => 'form' %>

	<p>
	  <label for="option_group">Option Group:</label><br/>
	</p>
	<table>
	  <% @option.option_groups.each do |option_group| -%>
	    <tr>
	      <td>
	        <%= option_group.option_value.name -%>  
	      </td>
	      <td>
	        <%= link_to 'remove', :controller => 'option_groups', :action => 'destroy', :id => option_group %>  
	      </td>
	    </tr>
	  <% end -%>
	</table>
	<br/>
	<%= link_to 'Associate Option Value', :controller => 'option_groups', :action => 'new', :id => @option %><br/>
  <%= submit_tag 'Update' %>
<% end %>